/*
 *Esteban Parra -
 *Nicolas Restrepo - 257965
 *Oscar Olarte - 257950
 *Sebastian Rodriguez 257884
 *Camilo Rodriguez - 257970
 */
package control;

/**
 *
 * @author Silex RPR
 */
public class OperacionesBasicas {
    public String parseData(String numberA, String numberB){
        try
        {
         Float.valueOf(numberA);
         Float.valueOf(numberB);
        }
        catch(NumberFormatException e){
            return "Por favor ingrese valores Numericos";
        }
        return "";
    }
    public float Addition(float numberA, float numberB){
        return numberA + numberB; 
    }
    public float Subtract(float numberA, float numberB){
        return numberA - numberB; 
    }
    public float Product(float numberA, float numberB){
        return numberA*numberB;
    }
    public float Division(float numberA, float numberB){
        return numberA/numberB;
    }
    
}
